package com.aidex.system.domain;

import com.aidex.common.annotation.Excel;
import com.aidex.common.core.domain.BaseEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

@Data
@EqualsAndHashCode(callSuper = true)
@Api(tags = "门户小页管理")
public class SysPortlet extends BaseEntity {

    @ApiModelProperty("小页名称")
    @Excel(name = "小页名称")
    @NotBlank(message = "小页名称不允许为空")
    private String name;

    @ApiModelProperty("小页编码")
    @Excel(name = "小页编码")
    @NotBlank(message = "小页编码不允许为空")
    private String code;

    @ApiModelProperty("小页ULRL")
    @Excel(name = "小页ULRL")
    private String url;

    @ApiModelProperty("刷新频率")
    @Excel(name = "刷新频率")
    private String refreshRate;

    @ApiModelProperty("是否显示标题")
    @Excel(name = "是否显示标题" , dictType = "sys_yes_no")
    private String showTitle;

    @ApiModelProperty("是否允许拖拽")
    @Excel(name = "是否允许拖拽" , dictType = "sys_yes_no")
    private String isAllowDrag;

    @ApiModelProperty("横向栅格数")
    @Excel(name = "横向栅格数")
    private String xGridNumber;

    @ApiModelProperty("纵向栅格数")
    @Excel(name = "纵向栅格数")
    private String yGridNumber;

    @ApiModelProperty("排序")
    @Excel(name = "排序")
    private Long sort;

    @ApiModelProperty("状态")
    @Excel(name = "状态" , dictType = "sys_normal_disable")
    @NotBlank(message = "状态不允许为空")
    private String status;

    @ApiModelProperty("角色ID")
    private String roleId;

    @ApiModelProperty("用户ID")
    private String userId;

    @ApiModelProperty("菜单ID")
    private String menuId;
}
